<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>

<title><fmt:message key="moduleMenuDetail.title"/></title>
<content tag="heading"><fmt:message key="moduleMenuDetail.heading"/></content>
  <script language="javascript">
    
         window.parent('treePage').location.href="moduleMenus.html?method=moduleMenuTree";   
      
  </script>

<table width="100%" height="76" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="left" valign="top" >
	  
           <c:if test="${param.from == 'tree' }">
	  
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
				<td height="25" bgcolor="#5F9CD4" class="font01">&nbsp;&nbsp;&nbsp;&nbsp;系统&gt;&gt; 模块菜单&gt;&gt;菜单信息</td>
			  </tr>
			  <tr>
				<td height="8"></td>
			  </tr>
			</table>
		  </c:if>	  
          <html:form action="saveModuleMenu" method="post" styleId="moduleMenuForm" onsubmit="return validateModuleMenuForm(this)">
        	<html:hidden property="menuId"/>
			  
			  <!--- BEGIN--->
			  <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CDCDCD">
				<tr>
				  <td height="27" background="img/m-bt-bg01.gif" bgcolor="#FFFFFF" style="background-repeat:no-repeat;background-position:right">
						<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
							  <td width="2%"><img src="img/dian-1.gif" width="6" height="6" /></td>
							  <td width="48%" class="btn02">菜单信息</td>
							  <td width="50%">&nbsp;</td>
							</tr>
				    </table>
				  </td>
				</tr>
				<tr>
				  <td bgcolor="#F8F8F8">
					    <table width="100%" border="1" cellspacing="0" cellpadding="1" bordercolor="ffffff" bordercolordark="#ffffff" bordercolorlight="B9B9B9">
							<tr align="center">
							  <td width="133" height="28" bgcolor="#EFEFEF"><carsite:label styleClass="desc" key="moduleMenuForm.menuName"/></td>
							  <td width="310" height="28">
							  <html:errors property="menuName"/>
						        <html:text property="menuName" styleId="menuName" styleClass="text medium"/>
							  </td>
							   <td width="156" height="28"bgcolor="#EFEFEF">所在位置</td>
							  <td width="625" height="28">
							  <%/**<html:errors property="title"/>
							    <html:text property="title" styleId="title" styleClass="text medium"/>
							    */ %>
							    <html:errors property="postion"/>
							    <html:text property="postion" styleId="postion" styleClass="text medium"/>
                              </td>
							</tr>
						
							<tr align="center">
                              <td height="28"bgcolor="#EFEFEF">显示条数</td>
                              <td height="28">
                                 <html:errors property="topNum"/>
                                  <html:text property="topNum" styleId="topNum" styleClass="text medium"/>
                              </td>
                              <td height="28"bgcolor="#EFEFEF"><carsite:label styleClass="desc" key="moduleMenuForm.target"/></td>
                              <%/**
                              <td height="28">
                                 <html:errors property="target"/>
                                 <html:text property="target" styleId="target" styleClass="text medium"/>
                              </td>
                              */ %>
                             
                                <td height="28" align="left">
							   <html:radio styleClass="status" property="status" value="true" styleId="enabled"/>                               
                                           启用
                                <html:radio styleClass="status" property="status" value="false" styleId="enabled"/>                               
                                           禁用
                                                 
							        
							  </td>
       
        
						  </tr>
							<tr align="center">
							  <td height="28"bgcolor="#EFEFEF"> 所属模块</td>
							  <td height="28">
							  
							        <html:text property="parentName" styleClass="inputstyle" onclick="javascript:onShowMenu(this,'parentId','menuDiv')" size="27" maxlength="27"/>
							    	<html:hidden property="parentId"/>
									<jsp:include page="moduleMenuDiv.jsp">
										  <jsp:param name="isParent" value="true" />
									</jsp:include>
							
							  </td>
							  
							   <td height="28"bgcolor="#EFEFEF"><carsite:label styleClass="desc" key="moduleMenuForm.open"/></td>
                              	<td height="28" align="left">
							   <html:radio styleClass="open" property="open" value="true" styleId="enabled"/>                               
                                           启用
                                <html:radio styleClass="open" property="open" value="false" styleId="enabled"/>                               
                                           禁用
                                                 
							        
							  </td>
							  
							</tr>
					</table>			  
						<table  width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="ffffff" bordercolorlight="B9B9B9" bordercolordark="#ffffff">
						  <tr bgcolor="#99CCCC" >
							<td width="25%" height="28" align="center"  bgcolor="#EFEFEF">&nbsp; </td>
							<td width="34%" height="28" align="center" nowrap  bgcolor="#EFEFEF">
							  	
						                                  
									<html:submit  property="method.save" onclick="bCancel=false">
							            <fmt:message key="button.save"/>
							        </html:submit>
		         
		         
		         
		                    <c:if test="${param.from != 'tree' }">
                                   <c:if test="${moduleMenuForm.menuId != null}" >
											 
								        <html:submit styleClass="inputstyle" property="method.delete" onclick="bCancel=true; return confirmDelete('menu')">
								            <fmt:message key="button.delete"/>
								        </html:submit>
								        
								         <input type="button" name="button" styleClass="inputstyle"   value=" 增加下级菜单" onclick="window.location.href='editModuleMenu.html?parentId=<c:out value="${moduleMenuForm.menuId}"/>'"> 
								     </c:if>
			
                              </c:if>
								    
                           
						          </td> 
							<td width="41%" height="28"   bgcolor="#EFEFEF" >&nbsp;</td>
						  </tr>
						  <%/**
						   <tr align="center">
									  <td align="center" bgcolor="#EFEFEF"><carsite:label styleClass="desc" key="userForm.branch"/></td>
									  <td height="28" align="left">
									        <html:text property="branchName" styleClass="inputstyle" onclick="javascript:onShow(this,'branchId','branchDiv')"  size="27" maxlength="27"/>
									    	<html:hidden property="branchId"/>
											<jsp:include page="branchDiv.jsp">
												  <jsp:param name="isParent" value="false" />
											</jsp:include>
							
									  </td>
									  <td align="center" bgcolor="#EFEFEF"><fmt:message key="userForm.dept"/></td>
									  <td height="28" align="left">
									         <html:select property="deptId" styleClass="inputstyle" onfocus="javascript:onBranchSelect()">
				                             </html:select>
				                       </td>
								 
								  </tr>*/ %>
					</table>
				  
				  </td>
				  
				</tr>
			  </table>
			  
			 <!---END--->
	  
	  
              </html:form>
			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td>&nbsp;</td>
				</tr>
			  </table>
      
    
	</td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="5"></td>
  </tr>
</table>


<script type="text/javascript">
    Form.focusFirstElement($("moduleMenuForm"));
</script>


<script type="text/javascript" src="<html:rewrite page="/scripts/validator.jsp"/>"></script><html:javascript formName="moduleMenuForm" cdata="false" dynamicJavascript="true" staticJavascript="false" />

